# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/lwt/Desktop/python-poker/ui/ConfigDlg.ui'
#
# Created: Thu Aug 19 11:32:45 2010
#      by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_ConfigDialog(object):
    def setupUi(self, ConfigDialog):
        ConfigDialog.setObjectName("ConfigDialog")
        ConfigDialog.setWindowModality(QtCore.Qt.WindowModal)
        ConfigDialog.resize(400, 300)
        self.gridLayout = QtGui.QGridLayout(ConfigDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget = QtGui.QTabWidget(ConfigDialog)
        self.tabWidget.setObjectName("tabWidget")
        self.tabPlayer = QtGui.QWidget()
        self.tabPlayer.setObjectName("tabPlayer")
        self.gridLayout_2 = QtGui.QGridLayout(self.tabPlayer)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtGui.QLabel(self.tabPlayer)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.lineName = QtGui.QLineEdit(self.tabPlayer)
        self.lineName.setObjectName("lineName")
        self.horizontalLayout.addWidget(self.lineName)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 2)
        self.ckInitReady = QtGui.QCheckBox(self.tabPlayer)
        self.ckInitReady.setObjectName("ckInitReady")
        self.gridLayout_2.addWidget(self.ckInitReady, 1, 0, 1, 2)
        self.ckInitUseAi = QtGui.QCheckBox(self.tabPlayer)
        self.ckInitUseAi.setObjectName("ckInitUseAi")
        self.gridLayout_2.addWidget(self.ckInitUseAi, 2, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_7 = QtGui.QLabel(self.tabPlayer)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_7.addWidget(self.label_7)
        self.sbAiTime = QtGui.QSpinBox(self.tabPlayer)
        self.sbAiTime.setMaximum(5000)
        self.sbAiTime.setProperty("value", 200)
        self.sbAiTime.setObjectName("sbAiTime")
        self.horizontalLayout_7.addWidget(self.sbAiTime)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout_7, 3, 0, 1, 2)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_8 = QtGui.QLabel(self.tabPlayer)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_8.addWidget(self.label_8)
        self.sbTakeTime = QtGui.QSpinBox(self.tabPlayer)
        self.sbTakeTime.setMaximum(5000)
        self.sbTakeTime.setProperty("value", 100)
        self.sbTakeTime.setObjectName("sbTakeTime")
        self.horizontalLayout_8.addWidget(self.sbTakeTime)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem2)
        self.gridLayout_2.addLayout(self.horizontalLayout_8, 4, 0, 2, 2)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem3, 6, 0, 1, 1)
        self.tabWidget.addTab(self.tabPlayer, "")
        self.tabCS = QtGui.QWidget()
        self.tabCS.setObjectName("tabCS")
        self.gridLayout_3 = QtGui.QGridLayout(self.tabCS)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtGui.QLabel(self.tabCS)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.sbListenTime = QtGui.QSpinBox(self.tabCS)
        self.sbListenTime.setMinimum(1)
        self.sbListenTime.setMaximum(30)
        self.sbListenTime.setProperty("value", 2)
        self.sbListenTime.setObjectName("sbListenTime")
        self.horizontalLayout_2.addWidget(self.sbListenTime)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtGui.QLabel(self.tabCS)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.sbRecvTime = QtGui.QSpinBox(self.tabCS)
        self.sbRecvTime.setMinimum(1)
        self.sbRecvTime.setMaximum(30)
        self.sbRecvTime.setProperty("value", 2)
        self.sbRecvTime.setObjectName("sbRecvTime")
        self.horizontalLayout_3.addWidget(self.sbRecvTime)
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_4 = QtGui.QLabel(self.tabCS)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        self.sbWaitTime = QtGui.QSpinBox(self.tabCS)
        self.sbWaitTime.setMinimum(1)
        self.sbWaitTime.setMaximum(10)
        self.sbWaitTime.setProperty("value", 2)
        self.sbWaitTime.setObjectName("sbWaitTime")
        self.horizontalLayout_4.addWidget(self.sbWaitTime)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 2, 0, 1, 1)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem4, 3, 0, 1, 1)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem5, 1, 1, 1, 1)
        self.tabWidget.addTab(self.tabCS, "")
        self.tabUI = QtGui.QWidget()
        self.tabUI.setObjectName("tabUI")
        self.gridLayout_4 = QtGui.QGridLayout(self.tabUI)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.ckTakeCard = QtGui.QCheckBox(self.tabUI)
        self.ckTakeCard.setObjectName("ckTakeCard")
        self.gridLayout_4.addWidget(self.ckTakeCard, 0, 0, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_5 = QtGui.QLabel(self.tabUI)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_5.addWidget(self.label_5)
        self.sbTakeCardTime = QtGui.QSpinBox(self.tabUI)
        self.sbTakeCardTime.setMinimum(50)
        self.sbTakeCardTime.setMaximum(5000)
        self.sbTakeCardTime.setSingleStep(10)
        self.sbTakeCardTime.setProperty("value", 100)
        self.sbTakeCardTime.setObjectName("sbTakeCardTime")
        self.horizontalLayout_5.addWidget(self.sbTakeCardTime)
        self.gridLayout_4.addLayout(self.horizontalLayout_5, 0, 1, 1, 1)
        self.ckPlayCard = QtGui.QCheckBox(self.tabUI)
        self.ckPlayCard.setObjectName("ckPlayCard")
        self.gridLayout_4.addWidget(self.ckPlayCard, 1, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_6 = QtGui.QLabel(self.tabUI)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_6.addWidget(self.label_6)
        self.sbPlayCardTime = QtGui.QSpinBox(self.tabUI)
        self.sbPlayCardTime.setMinimum(50)
        self.sbPlayCardTime.setMaximum(5000)
        self.sbPlayCardTime.setSingleStep(10)
        self.sbPlayCardTime.setProperty("value", 100)
        self.sbPlayCardTime.setObjectName("sbPlayCardTime")
        self.horizontalLayout_6.addWidget(self.sbPlayCardTime)
        self.gridLayout_4.addLayout(self.horizontalLayout_6, 1, 1, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem6, 2, 0, 1, 1)
        spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem7, 0, 2, 1, 1)
        self.tabWidget.addTab(self.tabUI, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName("hboxlayout")
        spacerItem8 = QtGui.QSpacerItem(131, 31, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem8)
        self.okButton = QtGui.QPushButton(ConfigDialog)
        self.okButton.setObjectName("okButton")
        self.hboxlayout.addWidget(self.okButton)
        self.cancelButton = QtGui.QPushButton(ConfigDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.hboxlayout.addWidget(self.cancelButton)
        self.gridLayout.addLayout(self.hboxlayout, 1, 0, 1, 1)
        self.label.setBuddy(self.lineName)
        self.label_7.setBuddy(self.sbAiTime)
        self.label_8.setBuddy(self.sbTakeTime)
        self.label_2.setBuddy(self.sbListenTime)
        self.label_3.setBuddy(self.sbRecvTime)
        self.label_4.setBuddy(self.sbWaitTime)
        self.label_5.setBuddy(self.sbTakeCardTime)
        self.label_6.setBuddy(self.sbPlayCardTime)

        self.retranslateUi(ConfigDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.okButton, QtCore.SIGNAL("clicked()"), ConfigDialog.accept)
        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), ConfigDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ConfigDialog)

    def retranslateUi(self, ConfigDialog):
        ConfigDialog.setWindowTitle(QtGui.QApplication.translate("ConfigDialog", "设置", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("ConfigDialog", "玩家姓名:", None, QtGui.QApplication.UnicodeUTF8))
        self.ckInitReady.setText(QtGui.QApplication.translate("ConfigDialog", "程序启动后开启玩家准备状态", None, QtGui.QApplication.UnicodeUTF8))
        self.ckInitUseAi.setText(QtGui.QApplication.translate("ConfigDialog", "程序启动后开启自动出牌", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("ConfigDialog", "自动出牌延时(毫秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("ConfigDialog", "摸牌延时(毫秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabPlayer), QtGui.QApplication.translate("ConfigDialog", "玩家设置", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("ConfigDialog", "服务端监听超时(秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("ConfigDialog", "客户端接收超时(秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("ConfigDialog", "准备状态检测超时(秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabCS), QtGui.QApplication.translate("ConfigDialog", "后台设置", None, QtGui.QApplication.UnicodeUTF8))
        self.ckTakeCard.setText(QtGui.QApplication.translate("ConfigDialog", "开启发牌动画", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("ConfigDialog", "动画延时(毫秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.ckPlayCard.setText(QtGui.QApplication.translate("ConfigDialog", "开启出牌动画", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("ConfigDialog", "动画延时(毫秒):", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabUI), QtGui.QApplication.translate("ConfigDialog", "界面设置", None, QtGui.QApplication.UnicodeUTF8))
        self.okButton.setText(QtGui.QApplication.translate("ConfigDialog", "确定(&O)", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelButton.setText(QtGui.QApplication.translate("ConfigDialog", "取消(&C)", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    ConfigDialog = QtGui.QDialog()
    ui = Ui_ConfigDialog()
    ui.setupUi(ConfigDialog)
    ConfigDialog.show()
    sys.exit(app.exec_())

